#include "topsail.h"
#include "error.h"

#ifndef WRAPS_H
#define WRAPS_H

int Socket(int domain, int type, int protocol, char *file, int line);
int Bind(int sockfd, const struct sockaddr *my_addr, socklen_t addrlen, char *file, int line);
int Listen(int sockfd, int backlog, char *file, int line);
int Accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen, char *file, int line);
pid_t Fork(char *file, int line);
int Close(int fd, char *file, int line);
FILE *Fdopen(int fd, const char *mode, char *file, int line);
int Chdir(const char *path, char *file, int line);
int Lstat(const char *path, struct stat *buf, char *file, int line);
DIR *Opendir(const char *name, char *file, int line);
int Closedir(DIR *dir, char *file, int line);
FILE *Fopen(const char *path, const char *mode, char *file, int line);
int Fclose(FILE *fp, char *file, int line);
int Open(const char *pathname, int flags, char *file, int line);
void *Malloc(size_t size, char *file, int line);
int Rename(const char *oldpath, const char *newpath, char *file, int line);

#endif
